jq(function(){
	
	jq.getJSON("BuyCarServlet","opr=showCar",function(data){
	
		var contentTable=jq("#contentTable");
		var total=0;
		for(var i=0;i<data.length;i++){
		
			//////
			contentTable.append("<tr><td><div class=\"c_s_img\"><img src=\"images/c_1.jpg\" width=\"73\" height=\"73\" /></div>"+data[i].name+"</td><td align=\"center\">"+data[i].property+"</td><td align=\"center\">"+data[i].number+"</td><td align=\"center\" style=\"color:#ff4e00;\">￥"+data[i].totalprice+"</td><td align=\"center\">26R</td></tr>" );
			///////
			total=total+data[i].totalprice
		}
		contentTable.append("<tr height=\"70\"><td colspan=\"6\" style=\" border-bottom:0;\"> <span class=\"fr\">商品总价：￥"+total+" 返还积分  56R</span></td> </tr>")
	});
})